home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_003 / cforth / forth.lex.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  737b  |  39 lines

  1. /* this is my best effort at a reconstruction of this file - it was not
  2. **  included with the distribution, and I cannot reach the author via
  3. **   electronic mail!
  4. ** John Nelson  (decvax!genrad!john)  [moderator, mod.sources]
  5. */
  6.  
  7. struct tokenrec {
  8.     int type;
  9.     char *text;
  10. };
  11.  
  12. #define TOKEN struct tokenrec
  13.  
  14. TOKEN *yylex();
  15.  
  16. #define DECIMAL        1
  17. #define OCTAL        2
  18. #define HEX        3
  19. #define C_BS        4
  20. #define C_FF        5
  21. #define C_NL        6
  22. #define C_CR        7
  23. #define C_TAB        8
  24. #define C_BSLASH    9
  25. #define C_LIT        10
  26. #define STRING_LIT    11
  27. #define COMMENT        12
  28. #define PRIM        13
  29. #define CONST        14
  30. #define VAR        15
  31. #define USER        16
  32. #define LABEL        17
  33. #define COLON        18
  34. #define SEMICOLON    19
  35. #define SEMISTAR    20
  36. #define NUL        21
  37. #define LIT        22
  38. #define OTHER        23
  39.